<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    function createCar(name,qd,date,hege,jiage,shuming) {
        var car = new Object();
        car.name = name;
        car.qd = qd;
        car.date = date;
        car.hege = hege;
        car.jiage = jiage;
        car.shuming = shuming;

        car.jianjie = function () {
            alert("车名："+this.name+"\r\r驱动："+this.qd+"\r\r出厂时间"+this.date);
        }
        car.tan = function () {
            document.write("合格证："+this.hege+"<br />建议零售价："+this.jiage+"￥"+"<br />说明书："+this.shuming)
        }
        return car;
    }
    var che = createCar("飞毛腿","四驱","2017年7月25日16:57:44","合格","758888","请系好安全带，安全驾驶本车！");

    che.jianjie();
    che.tan()

</script>
</html>